package com.ruoyi.api.abuwx.service.impl;

import com.ruoyi.abuwx.domain.AbuwxPersonageRecord;
import com.ruoyi.abuwx.service.IAbuwxPersonageRecordService;
import com.ruoyi.api.abuwx.service.PersonagService;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.satoken.StpClientUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zouhuu
 * @description 客户端 用户管理模块 服务层
 * @date 2022/07/04 16:21:13
 */
@Service
public class PersonagServiceImpl implements PersonagService {



    @Autowired
    private IAbuwxPersonageRecordService iAbuwxPersonageRecordService;



    /**
     * 个人记录
     * @return
     */
    @Override
    public AjaxResult rechargeRecord() {
        AbuwxPersonageRecord recharge = new AbuwxPersonageRecord();
        recharge.setUid(StpClientUtil.getLoginIdAsLong());
        return AjaxResult.success(iAbuwxPersonageRecordService.selectAbuwxPersonageRecordList(recharge));
    }
}
